//
//  MyRepariDetailInfoTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/7/19.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "MyRepariDetailInfoTableViewCell.h"

@implementation MyRepariDetailInfoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.separatorInset = UIEdgeInsetsMake(0, 45, 0, 0);
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.lineView];
    [self.contentView addSubview:self.img];
    [self.contentView addSubview:self.lineView1];
    [self.contentView addSubview:self.timeLabel];
    [self.contentView addSubview:self.contentLabel];
}

-(UIView *)lineView
{
    if(_lineView == nil)
    {
        _lineView = [[UIView alloc] initWithFrame:CGRectMake(25.5, 0, 1, 27)];
        _lineView.backgroundColor = SFMColor(110.5, 110.5, 110.5);
        _lineView.hidden = YES;
    }
    return _lineView;
}

-(UIImageView *)img
{
    if (_img == nil) {
        _img = [[UIImageView alloc] initWithFrame:CGRectMake(20, 27, 12, 12)];
        _img.backgroundColor =SFMColor(110.5, 110.5, 110.5);
        _img.layer.cornerRadius = 6;
        _img.clipsToBounds = YES;
    }
    return _img;
}

-(UIView *)lineView1
{
    if (_lineView1 == nil) {
        _lineView1 = [[UIView alloc] initWithFrame:CGRectMake(25.5, 39, 1, 26)];
        _lineView1.backgroundColor = SFMColor(110.5, 110.5, 110.5);
        _lineView1.hidden = YES;
    }
    return _lineView1;
}

-(UILabel *)timeLabel
{
    if (_timeLabel == nil) {
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(53, 13, WIDTH - 63, 20)];
        _timeLabel.font = font(12);
        _timeLabel.textColor = SFM153;
        _timeLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _timeLabel;
}

-(UILabel *)contentLabel
{
    if (_contentLabel == nil) {
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(53, 32, WIDTH - 63, 20)];
        _contentLabel.font = font(14);
        _contentLabel.textColor = SFM153;
        _contentLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _contentLabel;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
